package top.toptimus.dto.customerInfo.account;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 客户账户信息
 */
@NoArgsConstructor
@Data
@AllArgsConstructor
public class CustomerAccountInfoDTO {
    private String id;
    private String tel; //  手机号
    private String wechatNo;    //  微信号
    private String email;   //  邮箱
    private String nickName;    //  昵称
    private List<CustomerInfoShortCut> customerInfoShortCuts; //  用户信息的id和名称

    public CustomerAccountInfoDTO(
            String id,
            String tel,
            String wechatNo,
            String email,
            String nickName
    ) {
        this.id = id;
        this.tel = tel;
        this.wechatNo = wechatNo;
        this.email = email;
        this.nickName = nickName;
    }

    /**
     * 用户基本信息kv build
     *
     * @param customerInfoShortCuts K:id，V:name
     * @return this
     */
    public CustomerAccountInfoDTO build(List<CustomerInfoShortCut> customerInfoShortCuts) {
        this.customerInfoShortCuts = customerInfoShortCuts;
        return this;
    }
}
